import TJavaLib.TList;
import java.text.DecimalFormatSymbols;
import java.util.Locale;
import java.text.DecimalFormat;

public class TUtil {
	public static DecimalFormat dF = new DecimalFormat("#,##0.00", new DecimalFormatSymbols(Locale.US));	

	public static int strIn(TList list, String str) {
		int rs = -1;
		if (list != null) {
			for (int i=0; i<list.len(); i++) {
				String s = (String)list.get(i);
				if (s.equalsIgnoreCase(str)) {
					rs = i;
					break;
				}
			}
		}
		return rs;
	}
}
